package com.example.delegatestrategy.demo;

/**
 * @author godShan
 * @Description:
 * @date 2019/5/8 9:43
 */
public class Gift {

    private Integer uId;

    private String grade;


    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public void Award(String whoTG) {
        Award award = AwardFactory.getInstance(whoTG);
        System.out.println("恭喜获得由 ：" + award.getName() + ", 提供的" + grade + " : ");
        System.out.println(award.execute());
    }

}
